package com.ziytek.web.citizen.model.bean;

import com.ziytek.web.citizen.constant.NumConstant;
import lombok.Data;

/**
 * @author fengh
 */
@Data
public class CommandFirst {
    private String reqCabinetNo;
    private String door;
    private Integer boardNo;
    private Integer channelNo;
    private Integer order;
    private Long stepId;
    private Long interruptOrEndStepId;
    /**
     * 预计执行时间(正整数,单位秒) setType = standing时必须大于0
     */
    private Integer expectedTimeSecond;

    /**
     * 单通道控制指令下发
     */
    public boolean isSingleChannel() {
        return boardNo != null && boardNo != NumConstant.INT_TWO_FIFTY_FIVE;
    }
}
